// let injectFactory = window['injectFactory'];
// let injectFactory = require('./temple_injeckFactory').injectFactory;
/**
 * 接受 注入的函数
 */
// let receiver = injectFactory('channel0');
let receiver = require('./temple_injeckFactory').receiver;

let normalValue = require('./value').normalValue;

receiver.exposeProp({ normalValue });

function normal__inJ() {
  if (receiver.getstatus()) {
    receiver.injected('666');
    console.log('this  Value IS CHANGED: ' + normalValue['value']);
  } else {
    console.log('is normalValue : ' + normalValue['value']);
  }
}

module.exports = { normal__inJ };
